package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品信息对象 crm_cpxx
 * 
 * @author SYF
 * @date 2025-04-16
 */
public class SysCrmCpxx extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long cpid;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String cpname;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String cptype;

    /** 产品编号 */
    @Excel(name = "产品编号")
    private String cpno;

    /** 产品类别名称 */
    @Excel(name = "产品类别名称")
    private String typeName;

    /** 产品类别ID */
    @Excel(name = "产品类别ID")
    private String typeId;

    /** 产品单位 */
    @Excel(name = "产品单位")
    private String cpunit;

    /** 产品状态 */
    @Excel(name = "产品状态")
    private String isstop;

    /** 零售价格 */
    @Excel(name = "零售价格")
    private BigDecimal preprice1;

    /** 成本价格 */
    @Excel(name = "成本价格")
    private BigDecimal cbprice;

    /** 预设价格1 */
    @Excel(name = "预设价格1")
    private BigDecimal preprice2;

    /** 是否算库存 */
    @Excel(name = "是否算库存")
    private String isstock;

    /** 创建人 */
    @Excel(name = "创建人")
    private String dataUsername;

    /** 创建人id */
    @Excel(name = "创建人id")
    private String dataUserid;

    /**  产品规格 */
    @Excel(name = " 产品规格")
    private String cpguige;

    public void setCpid(Long cpid) 
    {
        this.cpid = cpid;
    }

    public Long getCpid() 
    {
        return cpid;
    }

    public void setCpname(String cpname) 
    {
        this.cpname = cpname;
    }

    public String getCpname() 
    {
        return cpname;
    }

    public void setCptype(String cptype) 
    {
        this.cptype = cptype;
    }

    public String getCptype() 
    {
        return cptype;
    }

    public void setCpno(String cpno) 
    {
        this.cpno = cpno;
    }

    public String getCpno() 
    {
        return cpno;
    }

    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    public void setTypeId(String typeId) 
    {
        this.typeId = typeId;
    }

    public String getTypeId() 
    {
        return typeId;
    }

    public void setCpunit(String cpunit) 
    {
        this.cpunit = cpunit;
    }

    public String getCpunit() 
    {
        return cpunit;
    }

    public void setIsstop(String isstop) 
    {
        this.isstop = isstop;
    }

    public String getIsstop() 
    {
        return isstop;
    }

    public void setPreprice1(BigDecimal preprice1) 
    {
        this.preprice1 = preprice1;
    }

    public BigDecimal getPreprice1() 
    {
        return preprice1;
    }

    public void setCbprice(BigDecimal cbprice) 
    {
        this.cbprice = cbprice;
    }

    public BigDecimal getCbprice() 
    {
        return cbprice;
    }

    public void setPreprice2(BigDecimal preprice2) 
    {
        this.preprice2 = preprice2;
    }

    public BigDecimal getPreprice2() 
    {
        return preprice2;
    }

    public void setIsstock(String isstock) 
    {
        this.isstock = isstock;
    }

    public String getIsstock() 
    {
        return isstock;
    }

    public void setDataUsername(String dataUsername) 
    {
        this.dataUsername = dataUsername;
    }

    public String getDataUsername() 
    {
        return dataUsername;
    }

    public void setDataUserid(String dataUserid) 
    {
        this.dataUserid = dataUserid;
    }

    public String getDataUserid() 
    {
        return dataUserid;
    }

    public void setCpguige(String cpguige) 
    {
        this.cpguige = cpguige;
    }

    public String getCpguige() 
    {
        return cpguige;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cpid", getCpid())
            .append("cpname", getCpname())
            .append("cptype", getCptype())
            .append("cpno", getCpno())
            .append("typeName", getTypeName())
            .append("typeId", getTypeId())
            .append("cpunit", getCpunit())
            .append("isstop", getIsstop())
            .append("preprice1", getPreprice1())
            .append("cbprice", getCbprice())
            .append("preprice2", getPreprice2())
            .append("isstock", getIsstock())
            .append("dataUsername", getDataUsername())
            .append("dataUserid", getDataUserid())
            .append("cpguige", getCpguige())
            .toString();
    }
}
